package com.wang.demo.controller;



import com.wang.demo.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/user")
public class UserController {



    @RequestMapping("")
    public User user() {
        User user = new User();
        user.setName("张三");
        user.setAge(18);
        user.setAddress("北京");
        return user;
    }
}
